/****** Object:  Table [dbo].[member]    ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[member](
	[memberId] [int] IDENTITY(1,1) NOT NULL,
	[customerId] [nchar](10) NOT NULL,
	[passportNo] [nchar](20) NULL,
	[passportExpiryDatee] [date] NULL,
 CONSTRAINT [PK_member] PRIMARY KEY CLUSTERED 
(
	[memberId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

ALTER TABLE [dbo].[member]  WITH CHECK ADD  CONSTRAINT [FK_member_customer] FOREIGN KEY([customerId])
REFERENCES [dbo].[customer] ([customerId])
GO

ALTER TABLE [dbo].[member] CHECK CONSTRAINT [FK_member_customer]
GO

